import Mock from 'mockjs'

const data = Mock.mock({
    "list|10": [
        {
            "id": "@id",
            "name": "@title(3)",
            "price|1-200": 1,
            "img": "@image(100x100, @color())",
            "count": 0,
            'flag':false
        }
    ]
})

Mock.mock('/list', () => {
    return data.list
})